# Node Classification

https://neo4j.com/docs/graph-data-science/current/machine-learning/node-property-prediction/nodeclassification-pipelines/node-classification/

## Setup DopamineASD and DopamineDD class property

```MATCH (n:DopamineASD)
SET n.class = 1
MATCH (n:DopamineDD)
SET n.class = 0
```
## Set Node Labels according to Similarity type

```
    MATCH (n:Participant)-[r:DOPAMINE_GENETIC_SIMILARITY]->() 
    WITH distinct(n) as unique_participants
    SET unique_participants:DopamineGeneticSimilarity

    MATCH (n:Participant)-[r:DOPAMINE_GO_SIMILARITY]->() 
    WITH distinct(n) as unique_participants
    SET unique_participants:DopamineGoSimilarity

    MATCH (n:Participant)-[r:DOPAMINE_GENETIC_GO_SIMILARITY]->() 
    WITH distinct(n) as unique_participants
    SET unique_participants:DopamineGeneticGoSimilarity
```


## Install required libraries

```sh
make
```

## Run the import

```sh
python dopamine_node_classification.py -u <neo4j username> -p <password>  -b <bolt uri> -s <source directory>